import App from './App'
// #ifndef VUE3
import Vue from 'vue'
//引入VueI18n语言包管理
import VueI18n from 'vue-i18n';
Vue.use(VueI18n)
//引入语言包文件
import zh from "./common/lang/zh.js";
import ug from "./common/lang/ug.js";
const i18n = new VueI18n({
    locale: uni.getStorageSync("lang") || "zh",
    messages:{
        zh,ug
    },
})
Vue.prototype._i18n = i18n;
// main.js
import uView from "uview-ui";
Vue.use(uView);
// 引入uView对小程序分享的mixin封装
let mpShare = require('uview-ui/libs/mixin/mpShare.js');
Vue.mixin(mpShare)
//vue配置
App.mpType = 'app'
Vue.config.productionTip = false
const app = new Vue({
    ...App
})
//https://mydarling.gitee.io/uniapp-extend/#/
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif